<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 刘浩哲
  Date: 2022/11/28
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="../static/css/dist/css/bootstrap.min.css">
</head>
<body>
<div class="form-group text-center">
    <form action="index1.do" class="form-inline">
        <label>品牌名称:</label>
        <input class="form-control" type="text" name="uname" value="${sessionScope.brandEntity.Brand_Name}">

        <label>品牌首字母:</label>
        <input class="form-control" type="text" name="name" value="${sessionScope.brandEntity.initial}">

        <input class="form-control btn-info" type="submit" value="搜索">
    </form>
</div>

<div>
    <table class="table table-bordered">
        <tr>
            <td>品牌编号</td>
            <td>品牌名称</td>
            <td>品牌图片</td>
            <td>品牌首字母</td>
            <td>品牌描述</td>
            <td>创建时间</td>
        </tr>
        <c:forEach items="${requestScope.list}" var="list">
            <tr>
                <td>${list.brandid}</td>
                <td>${list.brand_Name}</td>
                <td><img src="../upload/${list.imageAddress}" alt="" width="100px" height="50px"></td>
                <td>${list.initial}</td>
                <td>${list.brand_Info}</td>
                <td>${list.addTime}</td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
